#include <stdio.h>
#include <stdlib.h>

extern unsigned int* generar_tabla_apariciones(unsigned char *buf, unsigned int size);
 
int main(){
	unsigned int size = 10;
	unsigned char *buf = (unsigned char *)malloc(size);
	
	int i;
	char a = 0;
	for (i = 0; i<size; i++){
		buf[i] = a;
		a++;
	}
	
	unsigned int *tabla_apariciones = generar_tabla_apariciones(buf, size);
	for (i=0; i<size; i++){
		printf("Esta es la posicion %i y el contenido es: %u \n", i, tabla_apariciones[i]);
	}

	return 0;
}
